<?php 
echo $this->form;


$ths = array('Profil','Parent (hérite de)','Description','Créé le','Créé par','--');
$trs = array();


$roles=array();
foreach($this->roles as $role) {
	$editUrl = '<a href="'.
				$this->url(array('module'=>'admin','controller'=>'system-roles','action'=>'edite','id'=>$role['name'])).'">'.
				$this->translate("edite").'</a>';
	$deleteUrl =  '<a href="'.
				$this->url(array('module'=>'admin','controller'=>'system-roles','action'=>'delete','id'=>$role['name'])).'">'.
				$this->translate("delete").'</a>';
	$role['urlAction']='--';//$editUrl.' - '.$deleteUrl;
	$date = new Zend_Date($role['created']);
	
	$role['created'] = $date;
	
	$roles[] = $role;
}


echo $this->wmpTableSorter($ths,$roles);

?>